package test;

import test.Projectile.AmmoType;

public abstract class AbstractGun implements Weapon {

	protected int rateOfFire;
	protected AmmoType ammo;
	protected double heat = 0;
	
	public AbstractGun(int rateOfFire, AmmoType ammo){
		this.rateOfFire = rateOfFire;
		this.ammo = ammo;
	}

	public void fire(AbstractShooter gunman) {
		switch (ammo){
		case PAINT_AMMO:
			new PaintProjectile(gunman);
			break;
		case BASIC_AMMO:
			System.out.println("BASIC AMMO NOT IMPLEMENTED YET!");
			break;
		default:
			System.out.println("Trying to fire unrecognized ammo in AbstractGun. AMmo: " + ammo);
		break;
		}
	}
	
	
	
}
